package com.sodimac.v2s.business
{
 	import com.adobe.cairngorm.business.ServiceLocator;
 	
 	import mx.collections.ArrayCollection;
 	import mx.rpc.AsyncToken;
 	import mx.rpc.IResponder;
 	import mx.rpc.soap.WebService;	
	
	public class LCDelegate
	{
		
		private var service:WebService;
		private var responder:IResponder;		
		
		public function LCDelegate(responder:IResponder)
		{
			this.service = ServiceLocator.getInstance().getWebService("wsConfirmacionGeneracionLC");
			this.responder = responder;
		}

		
		public function ConsultaInfoLC(cabecera: Object, 
									   idPedidoCorp: Number,
									   idEmpresa: String,  
									   idPais: String,
									   numeroOC:Number,
									   numeroLC:Number):void									   
		{
			trace("LCDelegate.ConsultaInfoLC (PedidoCorp="+ idPedidoCorp +")");
			var payload:Object = new Object();
			payload.idPedidoCorp = idPedidoCorp;
			payload.idPais = idPais;			
			payload.idEmpresa = idEmpresa;
			payload.numeroOC = numeroOC;
			payload.numeroLC = numeroLC;			
			
			var call:AsyncToken = service.consultaOCLCPais(cabecera,payload);
			call.addResponder( responder );

		}


	
	}
}

